package com.surprise.db.entity;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Transient;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.surprise.base.bo.IHasIdInterface;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * Mall.java
 * @author nick
 * @since 2016年1月7日
**/
@Data
@Entity(name="mall")
@Accessors(chain = true)
public class Mall implements IHasIdInterface {
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    protected Long id;
    @JsonIgnore
    protected Date addtime;
    @JsonIgnore
    protected Date updatetime;
    
    private String name = ""; // 购物中心名称: 大悦城
    private String developer = ""; // 开发商: 中海国际
    private String operator = ""; // 运营方
    private String phone = ""; // 运营方
    /**
     * 地址json
     * {
     *   "name": "上海市浦东新区东方路796号",
     *   "longitude": 121.532011,
     *   "latitude": 31.233629
     * }
     */
    private String address = ""; 
    /**
     * 负责人json
     * {
     *   "name": "王晓光",
     *   "tel": "021-32457618",
     *   "phone": "13852276543",
     *   "department": "业务推广部"
     * }
     */
    private String chargePerson = "";
    /**
     * 市场总监json
     * {
     *   "name": "王晓光",
     *   "tel": "021-32457618",
     *   "phone": "13852276543"
     * }
     */
    private String director = ""; 
    private String logoPic = ""; // logo图片 
    private String projectPic = ""; // 项目图片
    private String idPic1 = ""; // 证件照片正面
    private String idPic2 = ""; // 证件照片背面
    private String qrcode = "";
    
    @JsonProperty("cityId")
    private long cityid; // 城市id
    
    private long districtid; // 区id 
    
    @Transient
    private long distance; //距离
    @Transient
    private String num; //翻页

    private String prefix = ""; //购物中心简介
    private String emchatGroupID = ""; //环信群ID
}
